<tagLib name="html" />
<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.db.manage_db}</h3>
        <ul class="tab1">
            <li><a href="__URL__/dbExport"><span>{$Think.lang.db.backup}</span></a></li>
            <li><a href="__URL__/dbImport"><span>{$Think.lang.db.restore}</span></a></li>
            <li class="current"><a href="__URL__/dbOptimize"><span>{$Think.lang.db.optimize}</span></a></li>
        </ul>
    </div>
    <p class="tips">{$Think.lang.db.optimize_tips}</p>
    <form name="cpform" method="post" action="__URL__/dbOptimize" id="cpform">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2">
        <tr>
            <th>{$Think.lang.db.table_name}</th>
            <th>{$Think.lang.db.table_record}</th>
            <th>{$Think.lang.db.table_data_size}</th>
            <th>{$Think.lang.db.table_index_size}</th>
            <th>{$Think.lang.db.table_overhead}</th>
            <th>{$Think.lang.db.table_engine}</th>
            <th>{$Think.lang.db.table_collation}</th>
            <th width="10%">{$Think.lang.mark}</th>
        </tr>
        <volist name="tableList" id="vo">
        <tr class="item">
            <td>{$vo.Name}</td>            
            <td>{$vo.Rows}</td>            
            <td>{$vo.Data_length}</td>
            <td>{$vo.Index_length}</td>
            <td>{$vo.Data_free}</td>
            <td>{$vo.Engine}</td>
            <td>{$vo.Collation}</td>
            <td><input class="checkbox" type="checkbox" name="tables[]" value="{$vo.Name}"></td>
        </tr>
        </volist>
        <tr>
            <th>{$Think.lang.summary}</th>
            <th>{$dbRows}</th>
            <th>{$dataSize}</th>
            <th>{$indexSize}</th>
            <th>{$dataFreeSize}</th>
            <th></th>
            <th></th>
            <th></th>
        </tr>
        <tr class="nobg">
            <td colspan="7"><div class="fixsel right"><input type="submit" class="btn" name="submit" value="{$Think.lang.db.optimize}" /></div></td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'tables')" /><label for="chkall">{$Think.lang.check_all}</label></td>
            
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
